package boot;

import nio.NIOServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.annotation.Resource;

/**
 * @author dylan
 * @version 0.0.0.1
 * description
 * @date: 2023-12-27
 */
@SpringBootApplication
@EnableAsync
public class Application implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        new Thread(new NIOServer()).start();
        System.out.println("启动了一个服务");
    }
}
